Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixed time_stamp accuracy #79

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Maiort
Copy link

@Maiort Maiort commented Jul 19, 2018

only had a precision of 2 digits for the time_stamp -> now 9

only had a precision of 2 digits for the time_stamp -> now 9
@ethzasl-jenkins
Copy link

Can one of the admins verify this patch?

@@ -66,7 +66,7 @@ def write_transformation_to_csv_file(bag_file, target_frame, source_frame,
# Write to csv file.
quaternion = np.array(hamilton_quaternion)
csv_file.write(
str(single_tf.header.stamp.to_sec()) + ', ' +
str("{:.9f}".format(single_tf.header.stamp.to_nsec()/1000000000.0)) + ', ' +

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i think the to_sec() conversion should work here. so all what you need is:

str("{:.9f}".format(single_tf.header.stamp.to_sec()))

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah that works as well

@Kaju-Bubanja
Copy link

Any reason to not merge this?

@andrepfr
Copy link

@ffurrer ptal

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants